import request from '@/utils/request'

// 查询到期通知列表
export function listExpire(query) {
  return request({
    url: '/contract/expire/list',
    method: 'get',
    params: query
  })
}

// 查询到期通知详细
export function getExpire(id) {
  return request({
    url: '/contract/expire/' + id,
    method: 'get'
  })
}

// 新增到期通知
export function addExpire(data) {
  return request({
    url: '/contract/expire',
    method: 'post',
    data: data
  })
}

// 修改到期通知
export function updateExpire(data) {
  return request({
    url: '/contract/expire',
    method: 'put',
    data: data
  })
}

// 删除到期通知
export function delExpire(id) {
  return request({
    url: '/contract/expire/' + id,
    method: 'delete'
  })
}
